<template>
	<slot v-if="getUserAuthBtnList" />
</template>

<script setup lang="ts" name="auth">
// 定义父组件传过来的值
const props = defineProps({
	value: {
		type: String,
		default: () => '',
	},
});
const getUserAuthBtnList = computed(() => {
	return $store.user.userInfo.authBtnList.some((v: string) => v === props.value);
});

</script>
